#ifndef CMDREQUESTTERRAINTILE
#define CMDREQUESTTERRAINTILE

#include <string>
#include <sstream>
#include <commands/command.h>

#include <app/states/terrainTileState.h>
#ifdef CLIENT
#include <render/levels/tile.h>
#include <boost/shared_ptr.hpp>
#endif

using std::string;
using std::stringstream;

class COMMAND_HEADER(c_request_terrain_tile)

  int x;
  int y;
  int level;
  #ifdef CLIENT
  boost::shared_ptr<tile> * caller;
  #endif

  terrainTileState *terrain_tile_state;

public:

  #ifdef CLIENT
  void setData(int x, int y, int level, boost::shared_ptr<tile> * caller_);
  #endif
};

#endif